import { request } from 'ice';

/**
 * 获取类别列表
 * @returns
 */
export function getCategories() {
  return request.get('/Categories');
}
/**
 * 编辑类别
 * @param id
 * @param value
 * @returns
 */
export function editCategory(id, value) {
  return request.put('/editCategory', {
    id,
    value,
  });
}
/**
 * 删除类别
 * @param id
 * @returns
 */
export function removeCategory(id:string) {
  return request.delete(`/removeCategory/${id}`);
}
